<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<title>用户详情</title>
	<link rel="stylesheet" type="text/css" href="/admin/css/bootstrap.min.css"/>
	<link rel="stylesheet" type="text/css" href="/admin/css/bootstrap-table.min.css"/>
	<link rel="stylesheet" type="text/css" href="/admin/css/style.min.css" />
	<link rel="stylesheet" type="text/css" href="/admin/layui/css/layui.css">

	<script src="/admin/js/jquery-3.3.1.min.js"></script>
	<script src="/admin/js/bootstrap.js"></script>
	<script src="/admin/layui/layui.js" charset="utf-8"></script>
	<script src="/admin/js/api.js" charset="utf-8"></script>
	<script src="/admin/js/base.js" charset="utf-8"></script>
	<script src="/admin/js/common.js"></script>

</head>
<body>
<div>
	<!-- Tab panes -->
	<div class="tab-content form-content">
		<div>
			<div class="rigthContent">
				<form class="layui-form layui-form-content" lay-filter="add_form" action="">
					<div class="tab-content form-content">
						<div class="row tab-pane active" role="tabpanel" id="form-tab1">
							<div class="col-sm-12">
								<div class="ibox float-e-margins">
									<div class="" >
										<div class="layui-form-item">
											<div class="layui-inline width-100">
												<label class="layui-form-label"><samp style="color: red;">*</samp>姓名：</label>
												<div class="layui-input-block">
													<input type="text" id="name" name="name" lay-verify="required" autocomplete="on" placeholder="请输入姓名" class="layui-input">
												</div>
											</div>
										</div>
										<div class="layui-form-item">
											<div class="layui-inline width-100">
												<label class="layui-form-label"><samp style="color: red;">*</samp>帐号：</label>
												<div class="layui-input-block">
													<input type="text" id="account" name="account" lay-verify="required" autocomplete="on" placeholder="请输入帐号" class="layui-input">
												</div>
											</div>
										</div>
										<div class="layui-form-item">
											<div class="layui-inline width-100">
												<label class="layui-form-label"><samp style="color: red;">*</samp>密码：</label>
												<div class="layui-input-block">
													<input type="password" id="password" name="password" lay-verify="required" autocomplete="on" placeholder="请输入密码" class="layui-input">
												</div>
											</div>
										</div>
										<div class="layui-form-item">
											<div class="layui-inline width-100">
												<label class="layui-form-label">联系电话：</label>
												<div class="layui-input-block">
													<input type="tel" id="phone" name="phone" autocomplete="off" class="layui-input">
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="layui-form-submit">
						<button id="save" type="button" class="layui-btn" lay-submit="" lay-filter="save" id="save">提交</button>
						<a class="layui-btn handle_back" onclick="toClose()">取消</a>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
<script>

	var userId = getParam("id");//主键
	layuiReady (function() {

		dataView();

		_loadingClose();
	});

	function dataView() {
		// 获取数据
		This.jqueryAjax(Api.admin.base.user.getBaseUserById, {userId: userId}, "json", function (data) {
			if (data && data.status == 1) {
				var dataObj = data.object;
				valData(dataObj);
			} else {
				layerMessage(data.message, 2);
			}
		});
	}

	//------------------------------------------详情回填数据-结束-------------------------------------------
</script>

</body>

</html>